					<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
					  <ul class="layui-tab-title  site-demo-title">
					    <li class="layui-this"><#noparse>${title!}</#noparse></li>
					  		<li class="actions"><a href='javascript:void(0);' onclick='L("<#noparse>${CPATH}</#noparse>/desktop/${gen.subPackageName}/${entity.SUB_MODEL_NAME?lower_case}/index.xhtml?ajax=true","content")'>返回</a></li>
					  </ul>

					  <div class="layui-body layui-tab-content site-demo site-demo-body" >
					    <div class="layui-tab-item layui-show">
					    	<div class="layui-main" >
<form class="layui-form" action="" id="editForm">
	<#list entity.fields as field>
	<#if field.extra.addPageShow?? && field.extra.addPageShow>
		<#if field.IS_PRIMARY_KEY>
			<input type="hidden" name="ID" value="<#noparse>${</#noparse>(item.${field.ATTR_NAME})!}" />
		<#else>
			<#if field.extra.editTagType?? && field.extra.editTagType== 'INPUT'>
		  	<div class="layui-form-item">
		    	<label class="layui-form-label">${field.DISPLAY_NAME}</label>
		    	<div class="layui-input-block">
		      		<input type="text" name="${field.NAME}" lay-verify="required" autocomplete="off" placeholder="请输入${field.DISPLAY_NAME}" class="layui-input" value="<#noparse>${</#noparse>(item.${field.NAME})!}"/>
		    	</div>
		  	</div>
			<#elseif field.extra.editTagType?? && field.extra.editTagType== 'RADIO'>
			<div class="layui-form-item">
				<label class="layui-form-label">${field.DISPLAY_NAME}</label>
				<div class="layui-input-block">
					<#noparse><@ui.RadioGroup</#noparse> name="${field.NAME}_GROUP" type="INFO_CATEGORY" value="3"/>
				</div>
			</div>				
			<#elseif field.extra.editTagType?? && field.extra.editTagType== 'CHECKBOX'>
			<div class="layui-form-item">
				<label class="layui-form-label">${field.DISPLAY_NAME}</label>
				<div class="layui-input-block">
					<#noparse><@ui.CheckList</#noparse> name="${field.NAME}_LIST" type="INFO_CATEGORY" value="1,3,5"/>
				</div>
			</div>
			<#elseif field.extra.editTagType?? && field.extra.editTagType== 'DROPDOWN'>
			<div class="layui-form-item">
				<label class="layui-form-label">${field.DISPLAY_NAME}</label>
				<div class="layui-input-block">
					<#noparse><@ui.DropList</#noparse> id="${field.NAME}" name="${field.NAME}" type="INFO_TYPE" value="<#noparse>$</#noparse>{(item.${field.NAME})!}"/>
				</div>
			</div>
			<#elseif field.extra.editTagType?? && field.extra.editTagType== 'TREE'>
			<div class="layui-form-item">
				<label class="layui-form-label">${field.DISPLAY_NAME}</label>
				<div class="layui-input-block">
					<#noparse><@ui.Tree</#noparse> id="${field.NAME}Tree" name="${field.NAME}Tree" type="INFO_CATEGORY" value="1,7,9" />
				</div>
			</div>		
			<#elseif field.extra.editTagType?? && field.extra.editTagType== 'TEXTAREA'>
			<div class="layui-form-item">
				<label class="layui-form-label">${field.DISPLAY_NAME}</label>
				<div class="layui-input-block">
					<#noparse><@ui.RichEdit</#noparse> id="${field.NAME}" name="${field.NAME}" content="<#noparse>$</#noparse>{(item.${field.NAME})!}" />
				</div>
			</div>		
			<#elseif field.extra.editTagType?? && field.extra.editTagType== 'FILEUPLOAD'>
			<#elseif field.extra.editTagType?? && field.extra.editTagType== 'LABEL'>
			<#elseif field.extra.editTagType?? && field.extra.editTagType== 'HIDDEN'>
				<#noparse>
				
			
			  	</#noparse>	
			<#else>
		  	<div class="layui-form-item">
		    	<label class="layui-form-label">${field.DISPLAY_NAME}</label>
		    	<div class="layui-input-block">
		      		<input type="text" name="${field.NAME}" lay-verify="required" autocomplete="off" placeholder="请输入${field.DISPLAY_NAME}" class="layui-input" value="<#noparse>${</#noparse>(item.${field.ATTR_NAME})!}"/>
		    	</div>
		  	</div>
			</#if>
		</#if>
	</#if>
	</#list>	
	


		<div class="layui-form-item">
			<div class="layui-input-block">
				<input type="button" class="layui-btn" value="提交" onclick="submitEditForm();"/>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
</form>
<script language="javascript">


</script>
<#noparse>
	<@ui.Script id="ScriptXX" />
	<@ui.Message id="Message" />
</#noparse>
					<script>

						function submitEditForm(){
							<#noparse><@ui.SubmitScript id="SubmitScript"/></#noparse>
							//$('#editForm').find('textarea[name=CONTENT]').val($$.layedit.getContent($rich_CONTENT_index));
							I.submit('<#noparse>${CPATH}</#noparse>/admin/press/info_update.xhtml', 'editForm','content', function(ddd){
								console.log('success');
								UM.getEditor('__CONTENT').destroy();
								var $rich_CONTENT_index = UM.getEditor('__CONTENT');
							});
						}
					</script>


							</div>
					    </div>
					  </div>
					</div> 	  